package cn.zust.ly.play.Exa;

/**
 * Created by liy on 2016/12/1.
 */
public class Test05 {
    public static void main(String[] args)
    {
        int first,second,third;
        for(int a=100;a<1000;a++)
        {
            first=a/100;
            second=a%100/10;
            third=a%10;
            if (a == first*first*first+second*second*second+third*third*third)
            {   System.out.println(a);}
        }
    }
}
